<?php
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
?>


<?php

$_REQUEST['ai_starttime']  = $_REQUEST['ai_starttime'] == '' ? '' : addslashes($_REQUEST['ai_starttime']);
$_REQUEST['ai_endtime']    = $_REQUEST['ai_endtime'] == '' ? '' : addslashes($_REQUEST['ai_endtime']);
$_REQUEST['ai_author']     = $_SESSION['nid'];

//leader项是前端列表要读取的，需要补一下
//获取局长信息
$leader=select_one_line_all_items($table_Prefix."member","nid = '".$_REQUEST['ai_employee_id']."' ");
$_REQUEST['ai_leader'] = $leader['nickname'];


include_once("mod-images-upload-function.php");

//设置需要搜索的表格的前缀后缀
$table = $table_Prefix . "event";
//设置需要搜索的表格的前缀后缀

$sql   =insert_date($table,$_REQUEST);
$query = do_query($sql) or die (mysqli_error().$sql);
mysqli_close($con);
?>




<script type="text/javascript">
    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "detail-list.php";
</script>
